package dressSmart.modules.controller;


import dressSmart.common.api.CommonResult;
import dressSmart.modules.service.TagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author znx
 * @since 2022-11-11
 */
@RestController
@RequestMapping("/tag")
public class TagController {
    @Autowired
    private TagService tagService;

    @GetMapping("/list")
    public CommonResult list(){
        return CommonResult.success(tagService.list());
    }

}

